<link rel="stylesheet" href="../Public/style/catering_equipment.css" />    
       <!-- 共用头部1 -->
	
    <script>
	 function  tab_shou(id){
		 $(".choose_type").css("display","none");
		  $("#"+id).css("display","block");
		 }
		 
		 
 </script>
     <div id="top">
		 <div class="head1 clear">
			 <div class="account sprite_icon" style="text-align:center; ">
                  <a href="index.php?g=Mobile&m=User&a=index" style=" color:#FFF; line-height:50px">
                 {if cookie('username')}
                  {php $user=M('User')->field('username')->where('id='.$jgsatuserid)->find()}
                  {php echo $user['username']} 
                 {else}登录
                 {/if}
                 </a>
			 </div>
			 {if $title}
			    <div class="title">{$title}</div> 
               {else}
                <div class="title">{$seo_title}</div> 
               {/if}<div class="search sprite_icon">
			     <span class="icon2 icon_com">
			 </div>
		 </div>
	 </div>         

   <include file="Mobile:nav"/>

 {php if($list):}  
 
          
 
	 

	 <style>
.bg{overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
</style>	 

	 <div class="P_mod_effect_catering C_mes">
         <ul class="list clear" id="tabajax">
          <volist name="list"  id="r" key="k" >  
            {php $brand = M('Brand')->where('id='.$r['brandid'])->find(); }
			 <li class="part {php if($k%2==0): } no_margin {php endif;}">
				 <a href="javascript:;">
					 <div class="padding">
						 <div class="pic {php if($k%2==0): } no_margin {php endif;}" >
							 <a href="index.php?g=Mobile&m=Product&a=show&id={$r['id']}"><img  height="133" src="{$r['picture']}" /> </a>
						 </div>
						 <div class="intro clear">
							 <div class="Img">
								 <a href="index.php?g=Mobile&m=Product&a=index&id=6&brandid={$brand['id']}"><img width="46" height="46" src="{$brand['pic_mix']}" alt="" /></a>
							 </div>

							 <div class="info" style="margin-top:20px; width:60%; text-align:center">
							     <p class="bg">{$brand['title']}</p>
							     <p><a href="index.php?g=Mobile&m=Product&a=show&id={$r['id']}">{$r['title']|str_cut=###,10}</a></p>
								 <strong></strong>
							 </div>
						 </div>
					 </div>
				 </a>
             </li>
           </volist>  
		 </ul>
	 </div>

     {if $count>$listRows}


<div class="psges" name="{$url_s}&p=2">下拉加载更多</div>
{else}
 <div  style="width:100%;     width: 100%; text-align: center;margin-top: 10px;padding: 0px 0 80px !important;">没有更多</div>

{/if}
 
    
 {php else:} 

<div class="left" style=" height:500px; font-size:24px; color:#999; text-align:center">


    <ul class="case"  style="margin-top:100px;">
     对不起，没有找到："{$seo_title}"的相关结果
    </ul>
</div>


{php endif;}   
    
    
     
     
 <style>
  #footer{ display:none}
  </style>  
<script>
     $(window).scroll(function()
 
   {
  
    if ($(window).scrollTop() == $(document).height() - $(window).height())
    {
 //alert($(window).scrollTop())
         var url=$('.psges').attr("name");
		 $('.psges').html('加载中...');
	   //alert(url)
		 $.ajax({
			type:"GET",
			url: url,
			//data: "name=John&location=Boston",
			dataType:'json', //数据类型
			success: function(msg){
				if(msg.list){
					var result_len=msg.list.length;
						for(var i=0;i<result_len;i++){
							var html='';
							if(i%2 ==0){
							     html+='<li class="part ">';
							 }else{
							     html+='<li class="part no_margin">';
							 }
							 html+='<a href="javascript:;">';
					         html+='<div class="padding">';
						     html+='<div class="pic">';
							 if(i%2 ==0){
							     html+='<div class="pic">';
							 }else{
							     html+='<div class="pic no_margin">';
							 }
							 
							 html+='<a href="index.php?g=Mobile&m=Product&a=show&id='+msg.list[i].id+'"><img  height="133" src="'+msg.list[i].picture+'" /> </a>';
						     html+='</div>';
						     html+='<div class="intro clear">';
							 html+='<div class="Img">';
						     html+='<a href="index.php?g=Mobile&m=Product&a=index&id=6&brandid='+msg.list[i].brandid+'"><img src="'+msg.list[i].pic_mix+'" alt="" /></a>';
							 html+='</div>';
                             html+='<div class="info" style="margin-top:20px; width:60%; text-align:center">';
							 html+='<p class="bg">'+msg.list[i].brand_t+'</p>';
							 html+='<p><a href="index.php?g=Mobile&m=Product&a=show&id='+msg.list[i].id+'">'+msg.list[i].title+'</a></p>';
							/* html+='<strong>'+msg.list[i].price+'</strong>';*/
							 html+=' </div>';
						     html+='</div>';
					         html+='</div>';
				             html+='</a>';
                             html+='</li>';
								
						 
						  $("#tabajax").append(html);
						}
					 $('.psges').attr('name',msg.p);
					 $('.psges').html('下拉加载更多');
					 
				}else{ $('.psges').html('没有更多');  }
				    
					
			   
			  
		}
	   
				
		});
	   
 
    }
 
   });
   </script>  